using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AssetFrame.Message;
using System.Reflection;
using SysFrame.Message;
using SysFrame.BP;


namespace AssetFrame.BP
{
    /// <summary>
    /// sys_asset_a3方法
    /// </summary>
    public class BLLsys_asset_a3
    {
        public Isys_asset_a3 interface_sys_asset_a3;

        public BLLsys_asset_a3()
        {
            object obj = BPBase.GetAchieve("AssetFrame.BP","sys_asset_a3");
            interface_sys_asset_a3 = (Isys_asset_a3)obj;
        }


        /// <summary>
        /// 得到sys_asset_a3实体
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public List<Mssys_asset_a3> Getsys_asset_a3MsByQuery(MsQuery msq)
        {
            return interface_sys_asset_a3.Getsys_asset_a3MsByQuery(msq);
        }

        /// <summary>
        /// 通过AUTOID得到实体
        /// </summary>
        /// <param name="AUTOID">ID</param>
        /// <returns>实体</returns>
        public Mssys_asset_a3 Getsys_asset_a3MsByKey(string AUTOID)
        {
            MsQuery msquery = new MsQuery();
            msquery.strquery += " and AUTOID='" + AUTOID + "' ";
            List<Mssys_asset_a3> lstData = Getsys_asset_a3MsByQuery(msquery);
            return lstData[0];
        }

        /// <summary>
        ///  保存sys_asset_a3信息
        /// </summary>
        /// <param name="ms">实体信息</param>
        /// <returns>消息</returns>
        public MsReturned Savesys_asset_a3(Mssys_asset_a3 ms)
        {
            return interface_sys_asset_a3.Savesys_asset_a3(ms);
        }

        /// <summary>
        /// 得到数据类型
        /// </summary>
        /// <param name="msquery">条件</param>
        /// <returns>数据类型</returns>
        public MsReturned Getsys_asset_a3ByQuery(MsQuery msquery)
        {
            return interface_sys_asset_a3.Getsys_asset_a3ByQuery(msquery);
        }

        /// <summary>
        /// 删除sys_asset_a3
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public MsReturned Deletesys_asset_a3ByQuery(MsQuery msq)
        {
            return interface_sys_asset_a3.Deletesys_asset_a3ByQuery(msq);
        }
        /// <summary>
        /// 删除sys_asset_a3
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public MsReturned Deletesys_asset_a3ByKey(string AUTOID)
        {
            MsQuery msquery = new MsQuery();
            
             if (AUTOID.IndexOf(",") > 0)
            {
                msquery.strquery += " and AUTOID in (" + AUTOID + ") ";
            }
            else
            {
                msquery.strquery += " and AUTOID='" + AUTOID + "' ";
            }
            return interface_sys_asset_a3.Deletesys_asset_a3ByQuery(msquery);
        }
    }
}
